package cn.b.sky.mes.mm.service;

import java.util.List;

import cn.b.sky.mes.mm.model.Supplier;
import cn.b.sky.mes.mm.model.condition.SupplierCondition;

public interface SupplierService {

  List<Supplier> getSuppliersByCondition(SupplierCondition condition);

  int getSupplierCountByCondition(SupplierCondition condition);

  Supplier getSupplierBySupplierCode(String siteCode, String supplierCode);

  void saveSupplier(Supplier supplier);

  void modifySupplier(Supplier supplier);

  String deleteSupplierBySiteCodeAndSupplierCode(String siteCode, String string);

  /**
   *  
   * <strong>Title : getSuppliersSuggests<br></strong>
   * <strong>Description : </strong>供应商搜索建议<br> 
   * <strong>Create on : 2016年4月11日 下午7:47:23<br></strong>
   * <p>
   * @param condition
   * @return
   * List<Supplier>
   * @throws 
   * @author dapeng.li<br>
   * @version <strong>v1.0.0</strong><br>
   * <br>
   * <strong>修改历史:</strong><br>
   * 修改人    |    修改日期    |    修改描述<br>
   * -------------------------------------------<br>
   * <br>
   * <br>
   */
  List<Supplier> getSuppliersSuggests(SupplierCondition condition);

}
